﻿using SmartPlant.Model;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;

namespace SmartPlant.Services.Interfaces
{
    /// <summary>
    /// 规格书
    /// </summary>
    public interface ISpecSheetDataService
    {
        /// <summary>
        /// WPF端编辑规格书。
        /// AchievementController/SpecOutput
        /// </summary>
        /// <param name="proId"></param>
        /// <param name="CmpntId"></param>
        /// <returns></returns>
        Task<RESTfulResult<FileContentResultBaseString>> DownSpecOutputAsync(string proId, string templatePath, string cmpntId);


        /// <summary>
        /// 更新仪表的规格书。把excel带回去，和执行规格书导入有些类似
        /// </summary>
        /// <param name="proId"></param>
        /// <param name="reportname"></param>
        /// <param name="path"></param>
        /// <param name="unitid"></param>
        /// <param name="files"></param>
        /// <param name="blankValueUpdteFlag"></param>
        /// <param name="TestMode"></param>
        /// <param name="IsCompType"></param>
        /// <returns></returns>
        Task<RESTfulResult<FileContentResultBaseString>> UploadSpecInputAsync(List<NetworkFileInfo> files, string projId, string templatePath, string cmpntId, bool blankValueUpdteFlag);

        /// <summary>
        /// 查单条记录
        /// </summary>
        /// <param name="cmpntId"></param>
        /// <param name="caseId"></param>
        /// <returns></returns>
        Task<SpecSheetData> GetById(
            decimal cmpntId,
            decimal caseId = 0);

    }
}
